import request from '@/utils/request'

// 创建平台数据来源
export function createSeekDataSource(data) {
  return request({
    url: '/car/seek-data-source/create',
    method: 'post',
    data: data
  })
}

// 更新平台数据来源
export function updateSeekDataSource(data) {
  return request({
    url: '/car/seek-data-source/update',
    method: 'put',
    data: data
  })
}

// 删除平台数据来源
export function deleteSeekDataSource(id) {
  return request({
    url: '/car/seek-data-source/delete?id=' + id,
    method: 'delete'
  })
}

// 获得平台数据来源
export function getSeekDataSource(id) {
  return request({
    url: '/car/seek-data-source/get?id=' + id,
    method: 'get'
  })
}

// 获得平台数据来源分页
export function getSeekDataSourcePage(query) {
  return request({
    url: '/car/seek-data-source/page',
    method: 'get',
    params: query
  })
}

// 导出平台数据来源 Excel
export function exportSeekDataSourceExcel(query) {
  return request({
    url: '/car/seek-data-source/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
